package com.company.cloud.pay.modules.api.request;

import com.company.cloud.common.bean.BaseParam;
import com.company.cloud.pay.modules.api.constant.PayTradeType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Getter
@Setter
public class PayBaseRequest extends BaseParam {

    @ApiModelProperty(value = "服务号", required = true)
    @NotEmpty(message = "服务号不能为空")
    private String serviceCode;

    @ApiModelProperty(value = "公司编号", required = true)
    @NotEmpty(message = "公司编号不能为空")
    private String companyNo;

//	@ApiModelProperty(value = "支付通道[PayChannelEnum]",required = true)
//	@NotNull(message = "支付通道不能为空")
//	private PayChannelEnum payChannel;

    @ApiModelProperty(value = "支付交易类型和通道[PayTradeType]", required = true)
    @NotNull(message = "支付交易类型和通道不能为空")
    private String payTradeType;

    private PayTradeType ptt;

    @ApiModelProperty(value = "操作人用户ID", required = true)
    @NotNull(message = "操作人用户不能为空")
    private Integer opUserId = -1;

    @ApiModelProperty(value = "操作人IP", required = true)
    @NotEmpty(message = "操作人IP不能为空")
    private String opIp;


}
